package com.can.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.can.domain.po.Replies;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RepliesVo  {     //需要这个类，因为多了个孩子属性
    private int id;
    @TableField("post_id")
    private int postId;
    @TableField("user_id")
    private int userId;
    @TableField("parent_reply_id")
    private Integer parentReplyId;
    private String content;
    private String username;
//    private java.sql.Timestamp createdAt;
    private   String createdAt;
    private List<RepliesVo> children =new ArrayList<>();



}
